home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
16
/
paste.zip
/
PASTE.DOC
next >
Wrap
Text File
|
1986-12-14
|
3KB
|
79 lines
NAME
paste - horizontally concatenate two files.
SYNOPSIS
paste [-paste] [-b <string>] [-<n>] [file1] [file2]
DESCRIPTION
Paste will append to the lines of <file1> the corresponding lines
of <file2>, with an optional string between them. Paste writes
to standard output.
The following flags are recognized by paste.
-p <file1> does not exist (<string> is prepended to each line.)
-a <file2> does not exist (<string> is appended to each line.)
-s Do not print <string> with lines from only one file.
-t An option to resolve the ambiguous command "paste <file>".
The -t flag forces <file> to trail standard input. I.e.,
"paste <file>"
is equivalent to "paste <file> <stdin>"
"paste -t <file>"
is equivalent to "paste <stdin> <file>".
-e Do not print <string> if both input lines are empty
(i.e., that contain no characters but '\n'.)
-b Indicates that a string of characters follow. The string
is inserted between each line of <file1> and <file2>. The
string may contain all the standard escape codes with the
exception of '\0'. The escape sequence '\s' is also known
to represent a blank. Blanks may also be imbedded in a
string by enclosing the string in quotes.
-<n> Print n lines of <file1> before appending lines of <file2>.
If n is negative (e.g., "paste --3") then n lines of
<file2> will be printed first.
BUGS
On some systems, you'll have to use an escape sequence to
represent capital letters in "string". Also, a quoted string
with multiple blanks may have them reduced to single blanks
on systems that do not recognize quote marks as special. Use
the escape sequences '\s' or '\ '.
As of this writing, the standard escape sequences are:
\b backspace
\f formfeed
\n newline
\r carriage return
\t tab
\0 Null character (not allowed in string argument)
\\ literal backslash
\" literal quote mark
\' literal apostrophe
\ddd bit pattern, consisting of 1 to 3 octal digits
Escape sequences special to paste:
\s space
A backslash followed by any other character merely represents
that character.
AUTHOR
John M. Gamble, January, 1984
2550 Yeager Road, #15-2
West Lafayette, IN 47906
Updated for UNIX April, 1986
Tested 12/3/86 by Ray Duncan with Microsoft C and MS-DOS 3.1